package com.yuandian.api.business_monitor.po;

import com.yuandian.po.BasePageSearch;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 说明：长流程业务查询对象
 * @Author yanjun
 * @Date 2020/9/29 13:34
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LongProcessParams extends BasePageSearch {

    private static final long serialVersionUID = 1L;

    /**
     * 系统id
     */
    private Integer systemId;

    /**
     * 时间日期
     */
    private String time;

    /**
     * 流转号
     */
    private String sysProcessId;

    /**
     * 操作员
     */
    private String opIdCode;

    public void setOrderByColumn(String orderByColumn) {
        if(!orderByColumn.equals(orderByColumn.toLowerCase())){
            super.setOrderByColumn(orderByColumn.replaceAll("([a-z])([A-Z])", "$1_$2").toLowerCase());
        }else {
            super.setOrderByColumn(orderByColumn);
        }

    }
}
